package com.project.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;


/**
 * 商家用户：(MerchantUsers)表实体类
 *
 */
@TableName("`merchant_users`")
@Data
@EqualsAndHashCode(callSuper = false)
public class MerchantUsers implements Serializable {

    // MerchantUsers编号
    @TableId(value = "merchant_users_id", type = IdType.AUTO)
    private Integer merchant_users_id;

    // 商家姓名
    @TableField(value = "`merchant_name`")
    private String merchant_name;
    // 民宿名称
    @TableField(value = "`name_of_homestay`")
    private String name_of_homestay;
    // 民宿电话
    @TableField(value = "`homestay_phone_number`")
    private String homestay_phone_number;


    // 审核状态
    @TableField(value = "examine_state")
    private String examine_state;


    // 用户编号
    @TableField(value = "user_id")
    private Integer userId;


    /**
     * 身份证正面
     */
    @TableField(value = "id_card_frontend")
    private String id_card_frontend;

    /**
     * 身份证反面
     */
    @TableField(value = "id_card_backend")
    private String id_card_backend;

    /**
     * 卫生许可证
     */
    @TableField(value = "permit")
    private String permit;


    // 更新时间
    @TableField(value = "update_time")
    private Timestamp update_time;

    // 创建时间
    @TableField(value = "create_time")
    private Timestamp create_time;

}
